package com.cz.nongyetongv5.bean;

import java.io.Serializable;

/**
 * 检查行业
 */
public class JianChaHangYe implements Serializable {

	/**
	 *
	 */
	private static final long serialVersionUID = 1L;
	private Integer id = null;
	private String name;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public JianChaHangYe(Integer id, String name) {
		this.id = id;
		this.name = name;
	}

	public JianChaHangYe() {
	}

	@Override
	public boolean equals(Object o) {

		if (o != null){

			if (o instanceof JianChaHangYe){

				JianChaHangYe jianChaHangYe = (JianChaHangYe) o ;

				return this.name.equals(jianChaHangYe.getName());

			}else{
				return false ;
			}

		}else{
			return false;
		}
	}
}
